package com.rd.student.jiaji.class3.caiyuxin;

import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入金字塔层数：");
        int a=scanner.nextInt();
        for(int i=0;i<a;i++){
            for (int j=a-i;j>0;j--){
                System.out.print(" ");
            }
            for(int q=0;q<(i+1)*2-1;q++){
                System.out.print("*");
            }
            System.out.println("");


        }

    }
}
